/*
 *email: chen983@sina.com
 */
#ifndef _ORACLE_ROW_H__
#define __ORACLE_ROW_H__
#include <vector>
#include <string>
using namespace std;

namespace Oracle
{

typedef struct COLUMN{
	string name;
	int max_len;
	int type;
	int null;
	char *data;
}COLUMN;

typedef vector <COLUMN> ROW;

class Row
{
public:
	Row();
	~Row();

	void addField(const COLUMN &field)
	{
		_row.push_back(field);
	}
	COLUMN &field(int i)
	{
		return _row[i];
	}
	int fieldCount()
	{
		return (int) _row.size();
	}
	void clear()
	{
		_row.clear();
	}
private:
	ROW _row;
};

};
#endif
